package com.xebest.web.mapper.write;

import com.xebest.web.model.XeVenStoreCheckDetailEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface XeVenStoreCheckDetailWriteMapper {

    /**
     * 添加盘点单明细
     *
     * @author 杜春静
     */
    int insertCheckDetail(XeVenStoreCheckDetailEntity record) throws Exception;

    /**
     * 批量插入盘点单
     *
     * @author 杜春静
     */
    int batchInsertCheckDetail(@Param("list") List<XeVenStoreCheckDetailEntity> detailList,
                               @Param("checkCode") String checkCode, @Param("createUser") String createUser) throws Exception;

    /**
     * 根据条件更新盘点单明细
     *
     * @author 杜春静
     */
    int updateCheckDetailByParam(Map<String, Object> map) throws Exception;

    /**
     * 批量更新盘点单明细
     *
     * @author 杜春静
     */
    int batchUpdateCheckDetail(@Param("detailList") List<XeVenStoreCheckDetailEntity> detailList) throws Exception;

}